<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">
	<#include "*/pubcss.ftl">
</head>

<body>
	<#include "*/top.ftl">
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">
			<#include "*/left.ftl">
			<div id="content" class="span10">
			<!-- content starts -->
			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">基础资料</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">房间管理</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">房间维护</a>
					</li>
				</ul>
			</div>
		    <form class="form-horizontal"  action="javascript:saveRoomInfo()">
		    <div class="row-fluid sortable">
			    <button type="submit" class="btn btn-primary">保存</button>
				<button type="button" class="btn btn-primary" onclick="javascript:window.history.back();">返回</button>
		    </div>
			<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-user"></i>房间信息</h2>
					</div>
					<div class="box-content">
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">房号</label>
									<div class="controls">
									    <input class="input-xlarge focused" disabled id="icode" name="icode" type="hidden" value="${(ri.icode)?if_exists}">
									    <input class="input-xlarge focused" disabled id="rid" name="rid"type="hidden" value="${(room.rid)?if_exists}">
										<input class="input-xlarge focused" disabled id="rcode" name="rcode"type="text" value="${(room.rcode)?if_exists}(${(room.unit.ban.community.cname)?if_exists}${(room.unit.ban.bname)?if_exists}${(room.unit.uname)?if_exists})">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">户型</label>
								<div class="controls form-horizontal">
								  
								  <select id="hcode" class="select" name="hcode">
								     <#list (houseTypes)?if_exists as houseType>
								       <option value="${(houseType.hcode)?if_exists}"  ${(houseType.hcode==(ri.houseType.hcode)?if_exists)?string('selected','')}>${(houseType.hname)?if_exists}</option>
								     </#list>
							      </select>
								  
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">建筑面积</label>
									<div class="controls">
										<input class="input-xlarge focused" id="coveredarea" name="coveredarea" type="text" value="${(ri.coveredarea)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">套内面积</label>
								<div class="controls form-horizontal">
								  <input class="input-xlarge focused" id="ucarea" name="ucarea" type="text" value="${(ri.ucarea)?if_exists}">
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">采暖面积</label>
									<div class="controls">
										<input class="input-xlarge focused" id="heatingarea" name="heatingarea" type="text" value="${(ri.heatingarea)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">采暖片大小</label>
								<div class="controls">
								  <input class="input-xlarge focused" id="filearea" name="filearea" type="text" value="${(ri.filearea)?if_exists}">
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">竣工时间</label>
									<div class="controls">
										<input type="text" class="input-xlarge" readonly id="ctime" name="ctime" value="${((ri.ctime)?if_exists)}">
										<img onclick="WdatePicker({el:'ctime'})" src="${base}/script/mydate97/skin/datePicker.gif" width="16" height="22" align="absmiddle">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">房屋造价</label>
								<div class="controls">
								  <input class="input-xlarge focused" id="cost" name="cost" type="text" value="${(ri.cost)?if_exists}">
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">合厨</label>
									<div class="controls form-horizontal">
									  <label class="radio">
										<input type="radio" id="kitchen" name="kitchen" value="0"  ${((ri.kitchensign)?if_exists)?string('checked','')}>
										是
									  </label>
									  <label class="radio">
										<input type="radio" id="kitchen" name="kitchen" value="1"  ${((ri.kitchensign)?if_exists)?string('','checked')}>
										否
									  </label>
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">合厕</label>
								<div class="controls form-horizontal">
								  <label class="radio">
									<input type="radio" id="toilet" name="toilet" value="0" ${((ri.toiletsign)?if_exists)?string('checked','')}>
									是
								  </label>
								  <label class="radio">
									<input type="radio" id="toilet" name="toilet" value="1" ${((ri.toiletsign)?if_exists)?string('','checked')}>
									否
								  </label>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span12">
								<div class="control-group form-horizontal">
									<label class="control-label" for="focusedInput">备注</label>
									<div class="controls">
										<textarea class="textarea span11" id="ricontent" name="ricontent" rows="10">${(ri.content)?if_exists}</textarea>
									</div>
								</div>
							</div>
						</div>
                      </div> 
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
		    </form> 
       
			<!-- content ends -->
			</div><!--/#content.span10-->
		</div><!--/fluid-row-->

		
	</div><!--/.fluid-container-->
	<#include "*/infotemplate/alert.ftl">
    <#include "*/infotemplate/saveinfo.ftl">
	<#include "*/pubjs.ftl">
	<script src='${base}/script/base/roominfo_edit.js'></script>	
		
</body>
</html>
